﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Newtonsoft.Json;

namespace ExamRepositoryWPF.Models
{
    public class MultiChoiceQuestion : QuestionBase
    {
        public int QuestionID { get; set; }

        public int Level { get; set; }

        public string Content { get; set; }

        public List<string> SectionsObject { get; set; }
        public string Sections
        {
            get { return JsonConvert.SerializeObject(SectionsObject); }
            set { SectionsObject = JsonConvert.DeserializeObject<List<string>>(value); }
        }

        public List<int> Answer { get; set; }

        public DateTime LastModified { get; set; }
    }
}
